package com.diankangwo.factory.service;

import com.diankangwo.factory.entity.TdClassification;

import java.util.List;

/** 二级分类
 * Created by wuye on 2017/9/11.
 */
public interface TdClassificationService {

    /**
     * 保存二级分类
     * @param tdClassification
     */
    int save(TdClassification tdClassification);

    /**
     * 查询所有二级分类
     * @return
     */
    List<TdClassification> queryAll();

    /**
     * 根据一级分类查询所有二级分类
     * @return
     */
    List<TdClassification> queryByTpesId(int typesId);


    /**
     * 批量删除
     */
    void deleteBatch(int typeId);

    /**
     * 普通删除
     */
    void delete(int id);

    TdClassification selectByPrimaryKey(Integer id);
}
